inherited frmDrpBill: TfrmDrpBill
  Left = 343
  Top = 51
  BorderIcons = [biSystemMenu]
  Caption = 'Drp'#35745#31639'--'#31532'1'#27493
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 12
  object pgcMain: TPageControl
    Left = 0
    Top = 0
    Width = 548
    Height = 274
    ActivePage = ts1
    Align = alClient
    Style = tsFlatButtons
    TabOrder = 0
    object ts1: TTabSheet
      Caption = 'ts1'
      object Bevel1: TBevel
        Left = 5
        Top = 4
        Width = 860
        Height = 530
      end
      object pnl1: TPanel
        Left = 9
        Top = 8
        Width = 852
        Height = 520
        TabOrder = 0
        object lblFilId: TcxLabel
          Left = 24
          Top = 20
          AutoSize = False
          Caption = #20998#25903#26426#26500#65306
          Transparent = True
          Height = 19
          Width = 65
        end
        object lblFactor: TcxLabel
          Left = 24
          Top = 76
          AutoSize = False
          Caption = #36827#34892'DRP'#36816#31639#26102#38656#35201#32771#34385#30340#22240#32032#65306
          Transparent = True
          Height = 19
          Width = 297
        end
        object cbbFilId: TcxComboBox
          Left = 24
          Top = 40
          TabOrder = 0
          Width = 173
        end
        object chkSavDepot: TcxCheckBox
          Left = 24
          Top = 104
          Caption = #32771#34385#23433#20840#24211#23384#37327
          State = cbsChecked
          TabOrder = 1
          Transparent = True
        end
        object chkOrdQty: TcxCheckBox
          Left = 24
          Top = 134
          Caption = #32771#34385#22312#35746#25968#37327
          State = cbsChecked
          TabOrder = 2
          Transparent = True
        end
        object chkUsedQty: TcxCheckBox
          Left = 24
          Top = 164
          Caption = #32771#34385#24050#21344#25968#37327
          State = cbsChecked
          TabOrder = 3
          Transparent = True
        end
        object chkFilRequest: TcxCheckBox
          Left = 24
          Top = 194
          Caption = #32771#34385#24453#25191#34892#35831#35843#21333
          State = cbsChecked
          TabOrder = 4
          Transparent = True
        end
        object chkFilDistribute: TcxCheckBox
          Left = 24
          Top = 224
          Caption = #32771#34385#24453#25191#34892#37197#36865#21333
          State = cbsChecked
          TabOrder = 5
          Transparent = True
        end
      end
    end
    object ts2: TTabSheet
      Caption = #37319#36141#24314#35758
      ImageIndex = 1
      object Bevel2: TBevel
        Left = 5
        Top = 4
        Width = 860
        Height = 530
      end
      object v: TPanel
        Left = 9
        Top = 8
        Width = 852
        Height = 520
        TabOrder = 0
        object Panel1: TPanel
          Left = 1
          Top = 1
          Width = 850
          Height = 41
          Align = alTop
          BevelOuter = bvSpace
          TabOrder = 0
          object lblFilNM: TcxLabel
            Left = 8
            Top = 12
            AutoSize = False
            Caption = #26426#26500#21517#31216#65306
            ParentFont = False
            Height = 19
            Width = 65
          end
          object lblDispNM: TcxLabel
            Left = 80
            Top = 12
            AutoSize = False
            ParentFont = False
            Height = 19
            Width = 193
          end
          object RzLabel4: TcxLabel
            Left = 336
            Top = 11
            AutoSize = False
            Caption = #36135#21697#32570#36135#27719#24635'-'#37319#36141#24314#35758
            ParentFont = False
            Transparent = True
            Height = 20
            Width = 153
          end
        end
        object Panel2: TPanel
          Left = 1
          Top = 42
          Width = 850
          Height = 438
          Align = alClient
          BevelOuter = bvSpace
          TabOrder = 1
          object PurOrderGrid: TcxGrid
            Left = 1
            Top = 1
            Width = 848
            Height = 436
            Align = alClient
            TabOrder = 0
            object PurOrderView: TcxGridDBBandedTableView
              Navigator.Buttons.CustomButtons = <>
              DataController.DataSource = dsPurOrder
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.BandHeaders = False
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              Styles.BandHeader = MainDM.bsTitle
              Bands = <
                item
                  FixedKind = fkLeft
                end
                item
                end>
              object PurOrderViewopt: TcxGridDBBandedColumn
                DataBinding.FieldName = 'opt'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 0
                Position.ColIndex = 0
                Position.RowIndex = 0
              end
              object PurOrderViewp_code: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_code'
                HeaderAlignmentHorz = taCenter
                Width = 128
                Position.BandIndex = 0
                Position.ColIndex = 1
                Position.RowIndex = 0
              end
              object PurOrderViewp_name: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_name'
                HeaderAlignmentHorz = taCenter
                Width = 119
                Position.BandIndex = 0
                Position.ColIndex = 2
                Position.RowIndex = 0
              end
              object PurOrderViewp_spec: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_spec'
                HeaderAlignmentHorz = taCenter
                Width = 119
                Position.BandIndex = 0
                Position.ColIndex = 3
                Position.RowIndex = 0
              end
              object PurOrderViewonhand: TcxGridDBBandedColumn
                DataBinding.FieldName = 'onhand'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 0
                Position.RowIndex = 0
              end
              object PurOrderViewusedqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'usedqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 1
                Position.RowIndex = 0
              end
              object PurOrderViewcanuseqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'canuseqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 2
                Position.RowIndex = 0
              end
              object PurOrderViewsaledqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'saledqty'
                HeaderAlignmentHorz = taCenter
                Width = 84
                Position.BandIndex = 1
                Position.ColIndex = 3
                Position.RowIndex = 0
              end
              object PurOrderViewsafeonhand: TcxGridDBBandedColumn
                DataBinding.FieldName = 'safeonhand'
                HeaderAlignmentHorz = taCenter
                Width = 73
                Position.BandIndex = 1
                Position.ColIndex = 4
                Position.RowIndex = 0
              end
              object PurOrderViewrequestqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'requestqty'
                HeaderAlignmentHorz = taCenter
                Width = 98
                Position.BandIndex = 1
                Position.ColIndex = 5
                Position.RowIndex = 0
              end
              object PurOrderViewundistinqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'undistinqty'
                HeaderAlignmentHorz = taCenter
                Width = 100
                Position.BandIndex = 1
                Position.ColIndex = 6
                Position.RowIndex = 0
              end
              object PurOrderViewundistoutqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'undistoutqty'
                HeaderAlignmentHorz = taCenter
                Width = 104
                Position.BandIndex = 1
                Position.ColIndex = 7
                Position.RowIndex = 0
              end
              object PurOrderViewoosqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'oosqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 8
                Position.RowIndex = 0
              end
              object PurOrderViewrecdate: TcxGridDBBandedColumn
                Caption = #21040#36135#26085#26399
                DataBinding.FieldName = 'recdate'
                HeaderAlignmentHorz = taCenter
                Width = 100
                Position.BandIndex = 1
                Position.ColIndex = 9
                Position.RowIndex = 0
              end
              object PurOrderVieworderqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'orderqty'
                HeaderAlignmentHorz = taCenter
                Width = 96
                Position.BandIndex = 1
                Position.ColIndex = 10
                Position.RowIndex = 0
              end
              object PurOrderViewt_name: TcxGridDBBandedColumn
                DataBinding.FieldName = 't_name'
                PropertiesClassName = 'TcxButtonEditProperties'
                Properties.Buttons = <
                  item
                    Default = True
                    Kind = bkEllipsis
                  end>
                Properties.OnButtonClick = PurOrderViewt_namePropertiesButtonClick
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 11
                Position.RowIndex = 0
              end
            end
            object PurOrderLevel: TcxGridLevel
              GridView = PurOrderView
            end
          end
        end
        object Panel3: TPanel
          Left = 1
          Top = 480
          Width = 850
          Height = 39
          Align = alBottom
          BevelOuter = bvSpace
          TabOrder = 2
          object btnSelectAll: TcxButton
            Left = 16
            Top = 8
            Width = 75
            Height = 25
            Caption = #20840#36873
            TabOrder = 0
            OnClick = btnSelectAllClick
          end
          object RzButton2: TcxButton
            Left = 108
            Top = 8
            Width = 75
            Height = 25
            Caption = #21453#36873
            TabOrder = 1
            OnClick = RzButton2Click
          end
          object RzButton3: TcxButton
            Left = 200
            Top = 8
            Width = 75
            Height = 25
            Caption = #20840#28165
            TabOrder = 2
            OnClick = RzButton3Click
          end
          object btnPurOrder: TcxButton
            Left = 727
            Top = 8
            Width = 113
            Height = 25
            Caption = #29983#25104#37319#36141#35746#21333
            TabOrder = 3
            OnClick = btnPurOrderClick
          end
          object btnPurRequest: TcxButton
            Left = 603
            Top = 8
            Width = 113
            Height = 25
            Caption = #29983#25104#35831#36141#21333
            TabOrder = 4
            OnClick = btnPurRequestClick
          end
        end
      end
    end
    object ts3: TTabSheet
      Caption = #37197#36865#24314#35758
      ImageIndex = 2
      object Bevel3: TBevel
        Left = 5
        Top = 4
        Width = 860
        Height = 530
      end
      object pnl3: TPanel
        Left = 9
        Top = 8
        Width = 852
        Height = 520
        TabOrder = 0
        object Panel4: TPanel
          Left = 1
          Top = 42
          Width = 850
          Height = 438
          Align = alClient
          BevelOuter = bvSpace
          TabOrder = 1
          object DistGrid: TcxGrid
            Left = 1
            Top = 1
            Width = 848
            Height = 436
            Align = alClient
            TabOrder = 0
            LookAndFeel.SkinName = ''
            object DistView: TcxGridDBBandedTableView
              Navigator.Buttons.CustomButtons = <>
              DataController.DataSource = dsDistribute
              DataController.Summary.DefaultGroupSummaryItems = <>
              DataController.Summary.FooterSummaryItems = <>
              DataController.Summary.SummaryGroups = <>
              OptionsView.GroupByBox = False
              OptionsView.BandHeaders = False
              Styles.Background = MainDM.bslBackGroup
              Styles.ContentEven = MainDM.bsEven
              Styles.ContentOdd = MainDM.bsOdd
              Styles.Footer = MainDM.bsTitle
              Styles.Header = MainDM.bsTitle
              Styles.Selection = MainDM.bsSelect
              Bands = <
                item
                  FixedKind = fkLeft
                end
                item
                end>
              object DistViewopt: TcxGridDBBandedColumn
                DataBinding.FieldName = 'opt'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 0
                Position.ColIndex = 0
                Position.RowIndex = 0
              end
              object DistViewfilnm: TcxGridDBBandedColumn
                Caption = #20998#25903#26426#26500
                DataBinding.FieldName = 'filnm'
                Width = 93
                Position.BandIndex = 0
                Position.ColIndex = 1
                Position.RowIndex = 0
              end
              object DistViewp_code: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_code'
                HeaderAlignmentHorz = taCenter
                Width = 120
                Position.BandIndex = 0
                Position.ColIndex = 2
                Position.RowIndex = 0
              end
              object DistViewp_name: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_name'
                HeaderAlignmentHorz = taCenter
                Width = 148
                Position.BandIndex = 0
                Position.ColIndex = 3
                Position.RowIndex = 0
              end
              object DistViewp_spec: TcxGridDBBandedColumn
                DataBinding.FieldName = 'p_spec'
                HeaderAlignmentHorz = taCenter
                Width = 103
                Position.BandIndex = 0
                Position.ColIndex = 4
                Position.RowIndex = 0
              end
              object DistViewonhand: TcxGridDBBandedColumn
                DataBinding.FieldName = 'onhand'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 0
                Position.RowIndex = 0
              end
              object DistViewusedqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'usedqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 1
                Position.RowIndex = 0
              end
              object DistViewcanuseqty: TcxGridDBBandedColumn
                Caption = #21487#29992#25968#37327
                DataBinding.FieldName = 'canuseqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 2
                Position.RowIndex = 0
              end
              object DistViewsaledqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'saledqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 3
                Position.RowIndex = 0
              end
              object DistViewsafeonhand: TcxGridDBBandedColumn
                DataBinding.FieldName = 'safeonhand'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 4
                Position.RowIndex = 0
              end
              object DistViewrequestqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'requestqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 5
                Position.RowIndex = 0
              end
              object DistViewundistinqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'undistinqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 6
                Position.RowIndex = 0
              end
              object DistViewundistoutqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'undistoutqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 7
                Position.RowIndex = 0
              end
              object DistViewoosqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'oosqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 8
                Position.RowIndex = 0
              end
              object DistViewrecdate: TcxGridDBBandedColumn
                Caption = #21040#36135#26085#26399
                DataBinding.FieldName = 'recdate'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 9
                Position.RowIndex = 0
              end
              object DistViewreqqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'reqqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 10
                Position.RowIndex = 0
              end
              object DistViewdistqty: TcxGridDBBandedColumn
                DataBinding.FieldName = 'distqty'
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 11
                Position.RowIndex = 0
              end
              object DistViewfilnull: TcxGridDBBandedColumn
                Caption = #37197#36865#26426#26500
                DataBinding.FieldName = 'filnull'
                PropertiesClassName = 'TcxButtonEditProperties'
                Properties.Buttons = <
                  item
                    Default = True
                    Kind = bkEllipsis
                  end>
                Properties.OnButtonClick = DistViewfilnmPropertiesButtonClick
                HeaderAlignmentHorz = taCenter
                Position.BandIndex = 1
                Position.ColIndex = 12
                Position.RowIndex = 0
              end
            end
            object DistLevel: TcxGridLevel
              GridView = DistView
            end
          end
        end
        object Panel5: TPanel
          Left = 1
          Top = 1
          Width = 850
          Height = 41
          Align = alTop
          BevelOuter = bvSpace
          TabOrder = 0
          object lblDepot: TcxLabel
            Left = 12
            Top = 12
            Caption = #20998#25903#20179#24211#65306
            Transparent = True
          end
          object cxLabel2: TcxLabel
            Left = 320
            Top = 12
            Caption = #36135#21697#32570#36135#27719#24635'-'#37197#36865#24314#35758
            Transparent = True
          end
          object edtDepot: TcxDBLookupComboBox
            Tag = 7
            Left = 80
            Top = 8
            DataBinding.DataField = 'depotid'
            DataBinding.DataSource = dsDepot
            Properties.ListColumns = <>
            TabOrder = 0
            Width = 145
          end
        end
        object Panel6: TPanel
          Left = 1
          Top = 480
          Width = 850
          Height = 39
          Align = alBottom
          BevelOuter = bvSpace
          TabOrder = 2
          object RzButton1: TcxButton
            Left = 16
            Top = 8
            Width = 75
            Height = 25
            Caption = #20840#36873
            TabOrder = 0
            OnClick = RzButton1Click
          end
          object RzButton4: TcxButton
            Left = 108
            Top = 8
            Width = 75
            Height = 25
            Caption = #21453#36873
            TabOrder = 1
            OnClick = RzButton4Click
          end
          object RzButton5: TcxButton
            Left = 200
            Top = 8
            Width = 75
            Height = 25
            Caption = #20840#28165
            TabOrder = 2
            OnClick = RzButton5Click
          end
          object btnDistribute: TcxButton
            Left = 600
            Top = 8
            Width = 113
            Height = 25
            Caption = #29983#25104#37197#36865#21333
            TabOrder = 3
            OnClick = btnDistributeClick
          end
          object btnFilRequest: TcxButton
            Left = 728
            Top = 8
            Width = 113
            Height = 25
            Caption = #29983#25104#35831#37197#21333
            TabOrder = 4
            OnClick = btnFilRequestClick
          end
        end
      end
    end
  end
  object pnlBottom: TPanel
    Left = 0
    Top = 274
    Width = 548
    Height = 55
    Align = alBottom
    BevelOuter = bvNone
    TabOrder = 1
    DesignSize = (
      548
      55)
    object btnPrior: TcxButton
      Left = 613
      Top = 10
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #19978#19968#27493'(&P)'
      TabOrder = 0
      OnClick = btnPriorClick
    end
    object btnNext: TcxButton
      Left = 699
      Top = 10
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #19979#19968#27493'(&N)'
      TabOrder = 1
      OnClick = btnNextClick
    end
    object btnCancel: TcxButton
      Left = 782
      Top = 10
      Width = 75
      Height = 25
      Anchors = [akRight, akBottom]
      Cancel = True
      Caption = #21462#28040'(&C)'
      ModalResult = 2
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D560A00000000000036000000280000002400000012000000010020000000
        000000000000C40E0000C40E0000000000000000000000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        80000080800000808000008080000080800000808000808080FF808080FF0080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000FFFFFFFF0080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        80000000FFFF000080FF000080FF808080FF0080800000808000008080000080
        8000008080000000FFFF808080FF008080000080800000808000008080000080
        8000008080000080800000808000808080FF808080FFFFFFFFFF008080000080
        800000808000008080000080800000808000FFFFFFFF00808000008080000080
        8000008080000080800000808000008080000000FFFF000080FF000080FF0000
        80FF808080FF0080800000808000008080000000FFFF000080FF000080FF8080
        80FF008080000080800000808000008080000080800000808000808080FFFFFF
        FFFF00808000808080FFFFFFFFFF008080000080800000808000FFFFFFFF8080
        80FF808080FFFFFFFFFF00808000008080000080800000808000008080000080
        80000000FFFF000080FF000080FF000080FF000080FF808080FF008080000000
        FFFF000080FF000080FF000080FF000080FF808080FF00808000008080000080
        80000080800000808000808080FFFFFFFFFF0080800000808000808080FFFFFF
        FFFF00808000FFFFFFFF808080FF0080800000808000808080FFFFFFFFFF0080
        800000808000008080000080800000808000008080000000FFFF000080FF0000
        80FF000080FF000080FF808080FF000080FF000080FF000080FF000080FF0000
        80FF808080FF0080800000808000008080000080800000808000808080FFFFFF
        FFFF008080000080800000808000808080FFFFFFFFFF808080FF008080000080
        80000080800000808000808080FFFFFFFFFF0080800000808000008080000080
        800000808000008080000000FFFF000080FF000080FF000080FF000080FF0000
        80FF000080FF000080FF000080FF808080FF0080800000808000008080000080
        8000008080000080800000808000808080FFFFFFFFFF00808000008080000080
        8000808080FF00808000008080000080800000808000FFFFFFFF808080FF0080
        8000008080000080800000808000008080000080800000808000008080000000
        FFFF000080FF000080FF000080FF000080FF000080FF000080FF808080FF0080
        8000008080000080800000808000008080000080800000808000008080000080
        8000808080FFFFFFFFFF00808000008080000080800000808000008080000080
        8000FFFFFFFF808080FF00808000008080000080800000808000008080000080
        800000808000008080000080800000808000000080FF000080FF000080FF0000
        80FF000080FF808080FF00808000008080000080800000808000008080000080
        80000080800000808000008080000080800000808000808080FFFFFFFFFF0080
        800000808000008080000080800000808000808080FF00808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        80000000FFFF000080FF000080FF000080FF000080FF808080FF008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        80000080800000808000808080FFFFFFFFFF0080800000808000008080008080
        80FF008080000080800000808000008080000080800000808000008080000080
        80000080800000808000008080000000FFFF000080FF000080FF000080FF0000
        80FF000080FF808080FF00808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000808080FF0080
        8000008080000080800000808000808080FFFFFFFFFF00808000008080000080
        80000080800000808000008080000080800000808000008080000000FFFF0000
        80FF000080FF000080FF808080FF000080FF000080FF000080FF808080FF0080
        8000008080000080800000808000008080000080800000808000008080000080
        800000808000808080FF00808000008080000080800000808000008080008080
        80FFFFFFFFFF0080800000808000008080000080800000808000008080000080
        8000008080000000FFFF000080FF000080FF000080FF808080FF008080000000
        FFFF000080FF000080FF000080FF808080FF0080800000808000008080000080
        800000808000008080000080800000808000808080FF00808000008080000080
        8000808080FFFFFFFFFF0080800000808000808080FFFFFFFFFF008080000080
        800000808000008080000080800000808000008080000000FFFF000080FF0000
        80FF808080FF0080800000808000008080000000FFFF000080FF000080FF0000
        80FF808080FF0080800000808000008080000080800000808000008080008080
        80FFFFFFFFFF0080800000808000808080FF00808000808080FFFFFFFFFF0080
        800000808000808080FFFFFFFFFF008080000080800000808000008080000080
        800000808000008080000000FFFF000080FF0080800000808000008080000080
        8000008080000000FFFF000080FF000080FF000080FF00808000008080000080
        8000008080000080800000808000808080FFFFFFFFFFFFFFFFFF808080FF0080
        80000080800000808000808080FFFFFFFFFF0080800000808000808080FFFFFF
        FFFF008080000080800000808000008080000080800000808000008080000080
        80000080800000808000008080000080800000808000008080000000FFFF0000
        80FF0000FFFF0080800000808000008080000080800000808000008080000080
        8000808080FF808080FF00808000008080000080800000808000008080008080
        80FFFFFFFFFFFFFFFFFFFFFFFFFF808080FF0080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        800000808000008080000080800000808000808080FF808080FF808080FF0080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        8000008080000080800000808000008080000080800000808000008080000080
        80000080800000808000008080000080800000808000}
      OptionsImage.NumGlyphs = 2
      TabOrder = 2
    end
    object btnExcel: TcxButton
      Left = 27
      Top = 10
      Width = 84
      Height = 25
      Anchors = [akRight, akBottom]
      Caption = #23548#20986'Excel'
      OptionsImage.Glyph.SourceDPI = 96
      OptionsImage.Glyph.Data = {
        424D360400000000000036000000280000001000000010000000010020000000
        000000000000C40E0000C40E00000000000000000000FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FF000000FF000000FFFF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00000000FF000000FF000000FF000000FF0000
        00FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00000000FF000000FF000000FF000000FF000000FF0000
        00FF000000FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00848484FF848484FF848484FF848484FF848484FF848484FF8484
        84FF848484FF848484FFFF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FF000000FF000000FF0000
        00FF000000FF000000FF000000FF000000FFFF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00840000FF8400
        00FFFF00FF00840000FFFF00FF00000000FFFF00FF00FF00FF00000000FF0000
        00FF000000FF000000FF000000FF000000FF000000FFFF00FF00FF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00FF00000000FFFF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00840000FFFF0000FF840000FFFF00
        00FF840000FFFF0000FF840000FFFF0000FFFF00FF00FF00FF00000000FFFF00
        FF00840000FFFF00FF00840000FF840000FFFF0000FF840000FFFF0000FF8400
        00FFFF0000FF840000FFFF0000FF840000FFFF00FF00FF00FF00000000FFFF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00000000FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00840000FFFF00
        00FF840000FFFF0000FF840000FFFF0000FF840000FFFF0000FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF0000FF8400
        00FFFF0000FF840000FFFF0000FF840000FFFF0000FF840000FFFF00FF00FF00
        FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
      TabOrder = 3
      Visible = False
      OnClick = btnExcelClick
    end
  end
  object qryPurOrder: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select filid,productid, p.code as p_code, p.[name] as p_name, p.' +
        'spec as p_spec, onhand, usedqty,'
      
        '           canuseqty, saledqty, safeonhand, requestqty, undistin' +
        'qty,'
      
        '           undistoutqty, oosqty, getdate() as recdate, oosqty as' +
        ' orderqty,  '#39#21333#20987#36825#37324#36873#25321#39' as t_name'
      
        '           from f_drpoperation(-2, 1, 1,1,1,1,1) left join td_pr' +
        'oduct p  on productid = p.p_id')
    CachedUpdates = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    OnCalcFields = qryPurOrderCalcFields
    Left = 38
    Top = 264
  end
  object dsPurOrder: TDataSource
    DataSet = cdsPurOrder
    Left = 38
    Top = 448
  end
  object qryDistribute: TUniQuery
    Connection = MainDM.UniConn
    SQL.Strings = (
      
        'select  filid, f.fi_filnm as filnm,productid, p.code as p_code, ' +
        'p.[name] as p_name, p.spec as p_spec, onhand, usedqty,'
      
        '           canuseqty, saledqty, safeonhand, requestqty, undistin' +
        'qty,'
      
        '           undistoutqty, oosqty, getdate() as recdate, oosqty as' +
        ' reqqty, oosqty as distqty,  '#39#21333#20987#36825#37324#36873#25321#39' as filnull'
      
        '           from f_drpoperation(-2, 1, 1,1,1,1,1) left join td_pr' +
        'oduct p  on productid = p.p_id'
      
        '                                                                ' +
        '        left join td_filiale f on filid = f.fi_filid')
    CachedUpdates = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    OnCalcFields = qryDistributeCalcFields
    Left = 110
    Top = 264
  end
  object dsDistribute: TDataSource
    DataSet = cdsDistribute
    Left = 110
    Top = 448
  end
  object cdsPurOrder: TClientDataSet
    Aggregates = <>
    FieldDefs = <
      item
        Name = 'filid'
        DataType = ftInteger
      end
      item
        Name = 'productid'
        DataType = ftInteger
      end
      item
        Name = 'p_code'
        DataType = ftString
        Size = 30
      end
      item
        Name = 'p_name'
        DataType = ftWideString
        Size = 60
      end
      item
        Name = 'p_spec'
        DataType = ftWideString
        Size = 60
      end
      item
        Name = 'onhand'
        DataType = ftFloat
      end
      item
        Name = 'usedqty'
        DataType = ftFloat
      end
      item
        Name = 'canuseqty'
        DataType = ftFloat
      end
      item
        Name = 'saledqty'
        DataType = ftFloat
      end
      item
        Name = 'safeonhand'
        DataType = ftFloat
      end
      item
        Name = 'requestqty'
        DataType = ftFloat
      end
      item
        Name = 'undistinqty'
        DataType = ftFloat
      end
      item
        Name = 'undistoutqty'
        DataType = ftFloat
      end
      item
        Name = 'oosqty'
        DataType = ftFloat
      end
      item
        Name = 'recdate'
        Attributes = [faReadonly]
        DataType = ftDateTime
      end
      item
        Name = 'orderqty'
        DataType = ftFloat
      end
      item
        Name = 't_name'
        Attributes = [faReadonly]
        DataType = ftString
        Size = 12
      end>
    IndexDefs = <>
    Params = <>
    ProviderName = 'dspPurOrder'
    StoreDefs = True
    Left = 38
    Top = 384
    object cdsPurOrderopt: TBooleanField
      DisplayLabel = #36873#25321
      FieldKind = fkInternalCalc
      FieldName = 'opt'
    end
    object cdsPurOrderp_code: TStringField
      DisplayLabel = #36135#21697#32534#30721
      FieldName = 'p_code'
      Size = 30
    end
    object cdsPurOrderp_name: TWideStringField
      DisplayLabel = #36135#21697#21517#31216
      FieldName = 'p_name'
      Size = 60
    end
    object cdsPurOrderp_spec: TWideStringField
      DisplayLabel = #35268#26684
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsPurOrderonhand: TFloatField
      DisplayLabel = #24403#21069#24211#23384
      FieldName = 'onhand'
    end
    object cdsPurOrderusedqty: TFloatField
      DisplayLabel = #21344#29992#37327
      FieldName = 'usedqty'
    end
    object cdsPurOrdercanuseqty: TFloatField
      DisplayLabel = #21487#29992#25968#37327
      FieldName = 'canuseqty'
    end
    object cdsPurOrdersaledqty: TFloatField
      DisplayLabel = #38144#21806#22312#35746#25968#37327
      FieldName = 'saledqty'
    end
    object cdsPurOrdersafeonhand: TFloatField
      DisplayLabel = #23433#20840#24211#23384#37327
      FieldName = 'safeonhand'
    end
    object cdsPurOrderrequestqty: TFloatField
      DisplayLabel = #24453#25191#34892#35831#37197#25968#37327
      FieldName = 'requestqty'
    end
    object cdsPurOrderundistinqty: TFloatField
      DisplayLabel = #24453#37197#36865#25910#36135#25968#37327
      FieldName = 'undistinqty'
    end
    object cdsPurOrderundistoutqty: TFloatField
      DisplayLabel = #24453#37197#36865#21457#36135#25968#37327
      FieldName = 'undistoutqty'
    end
    object cdsPurOrderoosqty: TFloatField
      DisplayLabel = #32570#36135#25968#37327
      FieldName = 'oosqty'
    end
    object cdsPurOrderrecdate: TDateTimeField
      FieldName = 'recdate'
      ReadOnly = True
    end
    object cdsPurOrderfilid: TIntegerField
      FieldName = 'filid'
    end
    object cdsPurOrderproductid: TIntegerField
      FieldName = 'productid'
    end
    object cdsPurOrdert_name: TStringField
      DisplayLabel = #36873#25321#20379#24212#21830
      FieldName = 't_name'
      ReadOnly = True
      Size = 12
    end
    object cdsPurOrderorderqty: TFloatField
      DisplayLabel = #19979#36798#37319#36141#35746#21333#37327
      FieldName = 'orderqty'
    end
  end
  object cdsDistribute: TClientDataSet
    Aggregates = <>
    Params = <>
    ProviderName = 'dspDistribute'
    Left = 112
    Top = 384
    object cdsDistributeopt: TBooleanField
      DisplayLabel = #36873#25321
      FieldKind = fkInternalCalc
      FieldName = 'opt'
    end
    object cdsDistributep_code: TStringField
      DisplayLabel = #36135#21697#32534#30721
      FieldName = 'p_code'
      Size = 30
    end
    object cdsDistributep_name: TWideStringField
      DisplayLabel = #36135#21697#21517#31216
      FieldName = 'p_name'
      Size = 60
    end
    object cdsDistributep_spec: TWideStringField
      DisplayLabel = #35268#26684
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsDistributesaledqty: TFloatField
      DisplayLabel = #38144#21806#22312#35746#37327
      FieldName = 'saledqty'
    end
    object cdsDistributesafeonhand: TFloatField
      DisplayLabel = #23433#20840#24211#23384
      FieldName = 'safeonhand'
    end
    object cdsDistributerequestqty: TFloatField
      DisplayLabel = #24453#25191#34892#35831#37197
      FieldName = 'requestqty'
    end
    object cdsDistributeundistinqty: TFloatField
      DisplayLabel = #24453#37197#36865#25910#36135
      FieldName = 'undistinqty'
    end
    object cdsDistributeundistoutqty: TFloatField
      DisplayLabel = #24453#37197#36865#21457#36135
      FieldName = 'undistoutqty'
    end
    object cdsDistributeoosqty: TFloatField
      DisplayLabel = #32570#36135#25968#37327
      FieldName = 'oosqty'
    end
    object cdsDistributerecdate: TDateTimeField
      FieldName = 'recdate'
      ReadOnly = True
    end
    object cdsDistributefilid: TIntegerField
      FieldName = 'filid'
    end
    object cdsDistributeproductid: TIntegerField
      FieldName = 'productid'
    end
    object cdsDistributereqqty: TFloatField
      DisplayLabel = #35831#37197#25968#37327
      FieldName = 'reqqty'
    end
    object cdsDistributedistqty: TFloatField
      DisplayLabel = #37197#36865#25968#37327
      FieldName = 'distqty'
    end
    object cdsDistributeonhand: TFloatField
      DisplayLabel = #24403#21069#24211#23384
      FieldName = 'onhand'
    end
    object cdsDistributeusedqty: TFloatField
      DisplayLabel = #21344#29992#37327
      FieldName = 'usedqty'
    end
    object cdsDistributecanuseqty: TFloatField
      FieldName = 'canuseqty'
    end
    object cdsDistributefilnm: TStringField
      FieldName = 'filnm'
      Size = 60
    end
    object cdsDistributefilnull: TStringField
      FieldName = 'filnull'
      ReadOnly = True
      Size = 12
    end
  end
  object dspPurOrder: TDataSetProvider
    DataSet = qryPurOrder
    Options = [poAllowCommandText]
    Left = 38
    Top = 320
  end
  object dspDistribute: TDataSetProvider
    DataSet = qryDistribute
    Options = [poAllowCommandText]
    Left = 112
    Top = 320
  end
  object dsDepot: TDataSource
    DataSet = cdsDepot
    Left = 218
    Top = 63
  end
  object cdsDepot: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 158
    Top = 63
    object cdsDepotdepotid: TIntegerField
      FieldName = 'depotid'
    end
  end
  object cdsDistOpt: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 54
    Top = 152
    object cdsDistOptopt: TBooleanField
      FieldName = 'opt'
    end
    object cdsDistOptSendfilid: TIntegerField
      FieldName = 'sendfilid'
    end
    object cdsDistOptSendDepotid: TIntegerField
      FieldName = 'senddepotid'
    end
    object cdsDistOptSendProductid: TIntegerField
      FieldName = 'sendproductid'
    end
    object cdsDistOptSendqty: TFloatField
      FieldName = 'sendqty'
      DisplayFormat = '0.####'
    end
    object cdsDistOptRecfilid: TIntegerField
      FieldName = 'recfilid'
    end
    object cdsDistOptRecDepotid: TIntegerField
      FieldName = 'RecDepotid'
    end
  end
end
